﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WCS_Service.Enums;

namespace WCS_Service.DomianService.Models
{
    /// <summary>
    /// 滚筒光通信报文
    /// </summary>
    public class RollerOpticalModel
    {
        public string modbusFunCode { get; set; }

        public RollerWriteModel data { get; set; }
    }

    /// <summary>
    /// 提示灯光通信报文
    /// </summary>
    public class PromptlightOpticalModel
    {
        public string modebusFunCode { get; set; }

        public PromptlightState promptlightState { get; set; }
    }

    /// <summary>
    /// 传送带写功能码字段
    /// </summary>
    public class RollerWriteModel
    {
        public RollerWriteState rollerUpAction { get; set; }
        public ushort rollerUpSpeed { get; set; }
        public ushort rollerUpAss { get; set; }
        public ushort rollerUpDec { get; set; }
        public ushort rollerUpLoadStopTime { get; set; }
        public ushort rollerUpUnloadStopTime { get; set; }

        public RollerWriteState rollerDownAction { get; set; }
        public ushort rollerDownSpeed { get; set; }
        public ushort rollerDownAss { get; set; }
        public ushort rollerDownDec { get; set; }
        public ushort rollerDownLoadStopTime { get; set; }
        public ushort rollerDownUnloadStopTime { get; set; }
    }

    /// <summary>
    /// 滚筒只读字段
    /// </summary>
    public class RollerReadInfoModel
    {
        public string agvCode { get; set; }
        public RollerState rollerUpState { get; set; }
        public MaterialState materialUpState { get; set; }
        public string rollerUpWarn { get; set; }
        public ushort rollerUpSpeed { get; set; }
        public ushort rollerUpAction { get; set; }
        public RollerState rollerDownState { get; set; }
        public MaterialState materialDownState { get; set; }
        public string rollerDownWarn { get; set; }
        public ushort rollerDownSpeed { get; set; }
        public ushort rollerDownAction { get; set; }
    }
}
